/**
 * Created by vincent on 2017/5/22.
 */
moduleUtils.filter('cmHundredRate', function () {
    return function (floatNumber) {
        if (angular.isNumber(floatNumber)) {
            return Math.round(floatNumber * 10000) / 100 + "%";
        } else {
            var a = parseFloat(floatNumber);
            if (isNaN(a)) {
                return "NA";
            } else {
                return Math.round(a * 10000) / 100 + "%";
            }
        }

    };
});